package com.bwie.feginclient.impl;

import com.bwie.feginclient.UserFeginClient;
import com.bwie.pojo.User;
import org.springframework.stereotype.Component;

//fegin的本地实现--降级类
@Component
public class UserFeginClientImpl implements UserFeginClient {
    @Override

    public User findUserByUserId(String id) {
        //这里写的就是降级逻辑的友好提示
        return new User(null,"服务器很忙，稍后再努力一下");
    }
}
